<template>
  <dl>
    <dt><img :src="coverUrl" alt=""></dt>
    <dd>{{title}}</dd>
    <dd>{{shortTitle}}</dd>
  </dl>
</template>
<script>
export default {
  props: ['rankId', 'title', 'shortTitle', 'coverUrl']
}
</script>
<style lang="scss" scoped>
dl{
  flex-shrink: 0;
  width: 30%;
  position: relative;
  dt{
    width: 100%;
    height: 100%;
    img{
      width: 100%;
      height: 100%;
      border-radius: 10px;
    }
  }
  dd{
    position: absolute;
    left: 0;
    color: white;
    text-align: center;
    width: 100%;
    background: rgba(10,10,10,.5);
  }
  dd:nth-of-type(1){
    font-size: 16px;
    font-weight: bold;
    top: 5px;
  }
  dd:nth-of-type(2){
    font-size: 14px;
    top: 25px;
  }
}
dl + dl{
  margin-left: 5px;
}
</style>
